<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Space Manager: &lt;SpaceManagerSerializeDelegate&gt; Protocol Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Space Manager
   &#160;<span id="projectnumber">0.2.0</span>
   </div>
   <div id="projectbrief">Objective-C wrapper around chipmunk</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('protocol_space_manager_serialize_delegate-p.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Instance Methods</a> &#124;
<a href="protocol_space_manager_serialize_delegate-p-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">&lt;SpaceManagerSerializeDelegate&gt; Protocol Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#import &lt;<a class="el" href="_space_manager_8h_source.html">SpaceManager.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Instance Methods</h2></td></tr>
<tr class="memitem:abd6e83e2b6055a2c8d811f3847c81b24"><td class="memItemLeft" align="right" valign="top">(long)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_space_manager_serialize_delegate-p.html#abd6e83e2b6055a2c8d811f3847c81b24">makeShapeId:</a></td></tr>
<tr class="separator:abd6e83e2b6055a2c8d811f3847c81b24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a469198dab514ecae0d5fa0fd75c4f22f"><td class="memItemLeft" align="right" valign="top">(long)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_space_manager_serialize_delegate-p.html#a469198dab514ecae0d5fa0fd75c4f22f">makeBodyId:</a></td></tr>
<tr class="separator:a469198dab514ecae0d5fa0fd75c4f22f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a245eeae159d6b17d3f37cd2d1f78a0df"><td class="memItemLeft" align="right" valign="top">(long)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_space_manager_serialize_delegate-p.html#a245eeae159d6b17d3f37cd2d1f78a0df">makeConstraintId:</a></td></tr>
<tr class="separator:a245eeae159d6b17d3f37cd2d1f78a0df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a6572468f6bf77d48f176b68f3df7ea"><td class="memItemLeft" align="right" valign="top">(BOOL)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_space_manager_serialize_delegate-p.html#a9a6572468f6bf77d48f176b68f3df7ea">aboutToWriteShape:shapeId:</a></td></tr>
<tr class="separator:a9a6572468f6bf77d48f176b68f3df7ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7523961e9110359a8d53651e9c41fb3c"><td class="memItemLeft" align="right" valign="top">(BOOL)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_space_manager_serialize_delegate-p.html#a7523961e9110359a8d53651e9c41fb3c">aboutToWriteBody:bodyId:</a></td></tr>
<tr class="separator:a7523961e9110359a8d53651e9c41fb3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a670bde788c1d1e2c4c5820850ae49f59"><td class="memItemLeft" align="right" valign="top">(BOOL)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_space_manager_serialize_delegate-p.html#a670bde788c1d1e2c4c5820850ae49f59">aboutToWriteConstraint:constraintId:</a></td></tr>
<tr class="separator:a670bde788c1d1e2c4c5820850ae49f59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac025909b8c99e05bad31c2bd5152521d"><td class="memItemLeft" align="right" valign="top">(BOOL)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_space_manager_serialize_delegate-p.html#ac025909b8c99e05bad31c2bd5152521d">aboutToReadShape:shapeId:</a></td></tr>
<tr class="separator:ac025909b8c99e05bad31c2bd5152521d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b350de493c72cf949b881226746d3f5"><td class="memItemLeft" align="right" valign="top">(BOOL)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_space_manager_serialize_delegate-p.html#a2b350de493c72cf949b881226746d3f5">aboutToReadBody:bodyId:</a></td></tr>
<tr class="separator:a2b350de493c72cf949b881226746d3f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a199edb5d6a2d166ec56767fc4729f70e"><td class="memItemLeft" align="right" valign="top">(BOOL)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="protocol_space_manager_serialize_delegate-p.html#a199edb5d6a2d166ec56767fc4729f70e">aboutToReadConstraint:constraintId:</a></td></tr>
<tr class="separator:a199edb5d6a2d166ec56767fc4729f70e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Delegate for handling I/O</p>
<p>These functions are events that get fired when saving/loading a space, they enable you to use a specific id system (if you choose) as well as record any UI specific data at time of writing; the reading events will let you hook up your UI when an object has just been read, but not added to the space yet. </p>
</div><h2 class="groupheader">Method Documentation</h2>
<a class="anchor" id="a2b350de493c72cf949b881226746d3f5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (BOOL) aboutToReadBody: </td>
          <td></td>
          <td class="paramtype">(cpBody *)&#160;</td>
          <td class="paramname"><em>body</em></td>
        </tr>
        <tr>
          <td class="paramkey">bodyId:</td>
          <td></td>
          <td class="paramtype">(UInt64)&#160;</td>
          <td class="paramname"><em>id</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">optional</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a199edb5d6a2d166ec56767fc4729f70e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (BOOL) aboutToReadConstraint: </td>
          <td></td>
          <td class="paramtype">(cpConstraint *)&#160;</td>
          <td class="paramname"><em>constraint</em></td>
        </tr>
        <tr>
          <td class="paramkey">constraintId:</td>
          <td></td>
          <td class="paramtype">(UInt64)&#160;</td>
          <td class="paramname"><em>id</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">optional</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ac025909b8c99e05bad31c2bd5152521d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (BOOL) aboutToReadShape: </td>
          <td></td>
          <td class="paramtype">(cpShape *)&#160;</td>
          <td class="paramname"><em>shape</em></td>
        </tr>
        <tr>
          <td class="paramkey">shapeId:</td>
          <td></td>
          <td class="paramtype">(UInt64)&#160;</td>
          <td class="paramname"><em>id</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">optional</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a7523961e9110359a8d53651e9c41fb3c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (BOOL) aboutToWriteBody: </td>
          <td></td>
          <td class="paramtype">(cpBody *)&#160;</td>
          <td class="paramname"><em>body</em></td>
        </tr>
        <tr>
          <td class="paramkey">bodyId:</td>
          <td></td>
          <td class="paramtype">(UInt64)&#160;</td>
          <td class="paramname"><em>id</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">optional</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a670bde788c1d1e2c4c5820850ae49f59"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (BOOL) aboutToWriteConstraint: </td>
          <td></td>
          <td class="paramtype">(cpConstraint *)&#160;</td>
          <td class="paramname"><em>constraint</em></td>
        </tr>
        <tr>
          <td class="paramkey">constraintId:</td>
          <td></td>
          <td class="paramtype">(UInt64)&#160;</td>
          <td class="paramname"><em>id</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">optional</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a9a6572468f6bf77d48f176b68f3df7ea"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (BOOL) aboutToWriteShape: </td>
          <td></td>
          <td class="paramtype">(cpShape *)&#160;</td>
          <td class="paramname"><em>shape</em></td>
        </tr>
        <tr>
          <td class="paramkey">shapeId:</td>
          <td></td>
          <td class="paramtype">(UInt64)&#160;</td>
          <td class="paramname"><em>id</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">optional</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a469198dab514ecae0d5fa0fd75c4f22f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (long) makeBodyId: </td>
          <td></td>
          <td class="paramtype">(cpBody *)&#160;</td>
          <td class="paramname"><em>body</em></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">optional</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a245eeae159d6b17d3f37cd2d1f78a0df"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (long) makeConstraintId: </td>
          <td></td>
          <td class="paramtype">(cpConstraint *)&#160;</td>
          <td class="paramname"><em>constraint</em></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">optional</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="abd6e83e2b6055a2c8d811f3847c81b24"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (long) makeShapeId: </td>
          <td></td>
          <td class="paramtype">(cpShape *)&#160;</td>
          <td class="paramname"><em>shape</em></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">optional</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this protocol was generated from the following file:<ul>
<li>src/<a class="el" href="_space_manager_8h_source.html">SpaceManager.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="protocol_space_manager_serialize_delegate-p.html">SpaceManagerSerializeDelegate</a></li>
    <li class="footer">Generated on Sun Sep 16 2012 13:09:50 for Space Manager by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
